package com.wtwd.campus.service;

import com.wtwd.campus.entity.PolygonFence;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2022-11-08
 */
public interface PolygonFenceService {

    /**
     * 根据设备类型,客户id,围栏id获取多边形围栏
     *
     * @param deviceType
     * @param customerId
     * @param fenceId
     * @return
     */
    PolygonFence getOrgPolygonFenceByDeviceTypeAndCustomerIdAndFenceId(int deviceType, int customerId, String fenceId);

    /**
     * 存储多边形围栏
     *
     * @param polygonFence
     * @return
     */
    Integer save(PolygonFence polygonFence);

    /**
     * 修改多边形围栏
     *
     * @param polygonFence
     * @return
     */
    Integer update(PolygonFence polygonFence);

    /**
     * 根据主键id删除多边形围栏
     *
     * @param id
     * @return
     */
    Integer deleteById(Integer id);

}
